<%@ page contentType="text/html;charset=UTF-8"%>

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<script language="JavaScript" type="text/javascript" src="../calendar/WdatePicker.js"></script>
<html:form action="register/registeraction">



<input type="hidden" name="steptype" value="1"/>
	<div id="regright">
		<table border="0">
			<tr>
				<td class="textright" style="width:90px">
					企业名称：
				</td>
				<td colspan="3">
					<html:text property="name" maxlength="50" size="38"  onblur="onblurdo(this)" value="${message.name}" ></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					英文名称：
				</td>
				<td colspan="3">
					<html:text property="name_en" maxlength="50" size="38" value="${message.name_en}"></html:text>
				</td>
			</tr>
			<tr>
				<td class="textright">
					企业别名：
				</td>
				<td colspan="3">
					<html:text property="name_n" maxlength="50" size="38" value="${message.name_n}"></html:text>
				</td>
			</tr>
			<tr>
				<td class="textright">
					企业地址：
				</td>
				<td>
					<html:text property="corp_address" maxlength="256" size="20" onblur="onblurdo(this)" value="${message.corp_address}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					行业：
				</td>
				<td>
					<select name="pk_da_industry" >
					
					<logic:notEmpty name="industryarray"
					>
					<logic:iterate id="industry" name="industryarray">
						<option value= "${industry.pk_da_industry}" 
						
							<logic:equal value="${industry.pk_da_industry}" name="message" property="pk_da_industry">
							selected
						</logic:equal>
						
						
						>${industry.name} </option>
					</logic:iterate>	
				 </logic:notEmpty>
					</select>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>

			<tr>
				<td class="textright">
					企业性质1:
				</td>
				<td>
					<select name="property1">

						<option value="1" 
						<logic:equal value="1" name="message" property="property1">
							selected
						</logic:equal>
						
						>上市</option>
						<option value="2" 
						
							<logic:equal value="2" name="message" property="property1">
							selected
						</logic:equal>
						>非上市</option>
					</select>

					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					企业性质2：
				</td>
				<td>
					<select name="property2">
					
					
						<option value="1" 
						
						<logic:equal value="1" name="message" property="property2">
							selected
						</logic:equal>
					
					>中外合资</option>
						<option value="2"
						
						<logic:equal value="2" name="message" property="property2">
							selected
						</logic:equal>
						
						>外商独资</option>
						<option value="3"
						
						<logic:equal value="3" name="message" property="property2">
							selected
						</logic:equal>
						
						>股份制</option>
						<option value="4"
						
						<logic:equal value="4" name="message" property="property2">
							selected
						</logic:equal>
						
						>国有企业</option>
						<option value="5"
						
						<logic:equal value="5" name="message" property="property2">
							selected
						</logic:equal>
						
						>私营企业</option>
						<option value="6"
						
						<logic:equal value="6" name="message" property="property2">
							selected
						</logic:equal>
						
						
						>境外企业</option>
						<option value="7"
						
						<logic:equal value="7" name="message" property="property2">
							selected
						</logic:equal>
						
						
						>其它</option>
					</select>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					法人代表：
				</td>
				<td>
					<html:text property="corporation" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.corporation}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					营业执照注册号：
				</td>
				<td>
					<html:text property="regno" maxlength="128" size="20" onblur="onblurdo(this)" value="${message.regno}"> </html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
				<tr>
				<td class="textright">
					成立日期：
				</td>
				<td>
					<html:text property="regdate" maxlength="10" size="20" onblur="onblurdo(this)"  value="${message.regdate}" onclick="WdatePicker()" readonly="true"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					注册资本：
				</td>
				<td>
					<html:text property="regcapital" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.regcapital}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					人员情况：
				</td>
				<td>
					<html:text property="employeenum" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.employeenum}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					营业场地面积：
				</td>
				<td>
					<html:text property="businessarea" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.businessarea}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					搜索关键字：
				</td>
				<td colspan="3">
					<html:text property="key_words" maxlength="1024" size="20" onblur="onblurdo(this)" value="${message.key_words}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
		
			<tr>
				<td colspan="4" class="f-12-F60000">
					说明：带“*”的为必填信息，带“
					<span class="f-12-000000">▼</span>”为可下拉选取的框，置灰框为不可修改信息
				</td>
			</tr>
			<tr>
				<td colspan="4" class="center">
					<img style="cursor:hand" src="../images/reset.jpg" width="60" height="20"  onclick="reset()" />
					&nbsp;&nbsp;
					<img style="cursor:hand" src="../images/next.jpg" width="60" onclick="onclicksubmit()"
							height="20" border="0" />
				
				</td>
			</tr>
		</table>

	</div>
</html:form>

<script language="javascript">
	function reset()
	{
		document.registerForm.reset();
	}
	
	
	function onclicksubmit()
	{
	var formtemp = document.registerForm;
	if(formtemp.name.value == '')
	{
		formtemp.name.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.corp_address.value == '')
	{
		formtemp.corp_address.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.corporation.value == '')
	{
		formtemp.corporation.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regno.value == '')
	{
		formtemp.regno.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regdate.value == '')
	{
		formtemp.regdate.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regcapital.value == '')
	{
		formtemp.regcapital.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.employeenum.value == '')
	{
		formtemp.employeenum.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.businessarea.value == '')
	{
		formtemp.businessarea.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.key_words.value == '')
	{
		formtemp.key_words.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.pk_da_industry.value == '')
	{
		formtemp.pk_da_industry.style.backgroundColor="#ffaa44";
		return ;
	}
	
		formtemp.submit();
	}
	
	
	function onblurdo(obj)
	{
		if(obj.value == '' )
		{
			obj.style.backgroundColor="#ffaa44";
		}else
		{
			obj.style.backgroundColor="#ffffff";
		}
	}
	
	
	
</script>